package util;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @description:
 * @author: chengbaiyi
 * @create: 2022-05-17 20:31
 */
@AllArgsConstructor
@Data
public class ResultUtils {
    private int success;
    private Object data;
    private String msg;

    public static ResultUtils toResult(int success, Object data, String msg) {
        return new ResultUtils(success, data, msg);
    }
}
